cc.Class({
    extends: cc.Component,

    properties: {
        scrollView: {
            default: null,
            type: cc.ScrollView,
            tiptool: "scrollView"
        },
    },



    // onLoad () {},

    start() {
        let scrollview = this.scrollView.getComponent('scrollview');
        scrollview.init();
        for (let index = 0; index < 30; index++) {
            let data = {
                key: 0,
                labelNum: "顶部添加" + index
            };
            // scrollview.insert_data(0, [data]);

            scrollview.append_data([data]);
            // scrollview.scroll_to_end();
        }
    },




    // update (dt) {},
});